﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<script type="text/javascript">
    function doChangeWebStoreBasePath() {
        var new_path = $("#new_path").val();
        if (new_path == "") {
            alert("路径不允许为空");
            return;
        }

        $.ajax({
            type: "POST",
            url: "/WebStore/DoChangeWebStoreBasePath",
            data: { "new_path": new_path },
            success: function(restag) {
                if (restag.res) {
                    alert("操作成功");
                }
                else {
                    alert("操作失败");
                }
            }
        })
    }
</script>

<div id="网盘">
    网盘路径：
    <input type="text" id="new_path" />
    <input type="button" onclick="doChangeWebStoreBasePath()" value="确定" />
</div>
